package com.hong.cloud.mall.practice.zuul.feign;

import com.hong.cloud.mall.practice.user.model.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 描述：UserFeignClient, 用于远程调用cloud-mall-user服务的接口
 */
@FeignClient(value = "cloud-mall-user")
public interface UserFeignClient {
    @PostMapping("/checkAdminRole")
    Boolean checkAdminRole(@RequestBody User user);
}
